import React from 'react'
import useLocalStoage from '../hooks/local-store-hook'

export default function CustomDateStoreHook() {
  const [name, setName] = useLocalStoage('name')

  return (
    <div>
      <h2>CustomDateStoreHook: {name}</h2>
      <button onClick={e => setName('mx')}>Set Name</button>
    </div>
  )
}
